package com.liujs.mapper;

import com.liujs.Entity.TenantDo;
import com.liujs.annotation.DataSource;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author liujs@centaline.com.cn
 * @description
 * @date 2020/10/13 15:55
 */

@Mapper
public interface TenantDoMapper {
    @DataSource(name = "donguan-master")
    List<TenantDo> queryAllWithMaster();

    @DataSource(name = "tianjin-master")
    List<TenantDo> queryAllWithSlave();
}
